package com.kayt.cyberBar.system.business.entity.po;

import com.kayt.cyberBar.common.base.BaseEntity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Description
 *
 * @author Kevin
 * @since 12/27/2017 16:35
 */
@Entity
@Table(name = "s_system_role")
@NamedQuery(name = "SSystemRole.findAll", query = "SELECT b FROM SSystemRole b")
public class SSystemRole extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 3351641132949255429L;
    private Long id;
    private String name;
    private String code;
    private String type;
    private String description;
    private Date createTime;
    private Date updateTime;
    private String operatorAccount;
    private String cyberCode;
    private String status;

    private List<SSystemRoleMenuCompetence> roleMenuCompetenceList;

    //    @OneToMany
    @Transient
    public List<SSystemRoleMenuCompetence> getRoleMenuCompetenceList() {
        return roleMenuCompetenceList;
    }

    public void setRoleMenuCompetenceList(List<SSystemRoleMenuCompetence> roleMenuCompetenceList) {
        this.roleMenuCompetenceList = roleMenuCompetenceList;
    }
    @Column(name = "d_cyber_code")
    public String getCyberCode() {
        return cyberCode;
    }

    public void setCyberCode(String cyberCode) {
        this.cyberCode = cyberCode;
    }

    @Column(name = "d_status_code")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "d_id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "d_name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "d_code")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    @Column(name = "d_type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Column(name = "d_description")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Column(name = "d_create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "d_update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "d_operator_account")
    public String getOperatorAccount() {
        return operatorAccount;
    }

    public void setOperatorAccount(String operatorAccount) {
        this.operatorAccount = operatorAccount;
    }
}
